package org.xg.study.pd.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.xg.study.pd.visitor.Visitor;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName User
 * @date 2021/9/18 10:16
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class User {
    public String name;//姓名
    public String identity;//身份：重点班、普通版| 特级教师、普通教师、实习教师
    public String clazz;//班级

    //核心访问方法
    public abstract void accept(Visitor visitor);
}
